package tracker;

public class SimplePoint implements Point {
    private int x;
    private int y;
    
    public SimplePoint(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public SimplePoint(Point loc) {
        this.x = loc.getX();
        this.y = loc.getY();
    }

    @Override
    public int getX() {
        return x;
    }

    @Override
    public int getY() {
        return y;
    }

    @Override
    public void setX(int x) {
        this.x = x;
    }
    
    @Override
    public void setY(int y) {
        this.y = y;
    }
}